import HomePage from './ui/main/HomePage'
import LoginPage from './ui/main/LoginPage'
import ConversationPage from './ui/main/ConversationPage'
import ContactPage from './ui/main/ContactPage'
import SettingPage from './ui/main/setting/SettingPage'
import Single from "./ui/voip/Single";
import Multi from "./ui/voip/Multi";
import FileRecordPage from "./ui/fileRecord/FileRecordPage";
import FavPage from "./ui/main/fav/FavPage";
import WorkspacePage from "./ui/workspace/WorkspacePage";
import Conference from "./ui/voip/conference/Conference";
import CompositeMessagePage from "./ui/main/CompositeMessagePage";
import MessageHistoryPage from "./ui/main/MessageHistoryPage";
import ConversationMessageHistoryPage from "./ui/main/ConversationMessageHistoryPage";
import ConversationFloatPage from "./ui/main/ConversationFloatPage";
import ConferencePortalPage from "./ui/voip/conference/ConferencePortalPage";
import MessagePage from "./ui/main/MessagePage.vue";
import MultimediaPreviewPage from "./ui/main/MultimediaPreviewPage.vue";

const routers = [
    {
        // path: "/",
        // component: LoginPage,
        redirect: "/home",
    },
    {
        path: "/home",
        component: HomePage,
        children: [
            {
                path: "",
                name: "conversation",
                component: ConversationPage,
            },
            {
                path: "contact",
                name: "contact",
                component: ContactPage,
            },
            {
                path: "fav",
                name: "fav",
                component: FavPage,
            },
            {
                name: "h-wp",
                path: "h-wp",
                component: WorkspacePage,
            },
            {
                path: "setting",
                name: "setting",
                component: SettingPage,
            },
            {
                path: "conference",
                name: "conference",
                component: ConferencePortalPage,
            },
        ],
    },
    {
        name: "voip-single",
        path: "/voip/single",
        component: Single,
    },
    {
        name: "voip-multi",
        path: "/voip/multi",
        component: Multi,
    },
    {
        name: "voip-conference",
        path: "/voip/conference",
        component: Conference,
    },
    {
        name: "files",
        path: "/files",
        component: FileRecordPage,
    },
    {
        name: "workspace",
        path: "/workspace",
        component: WorkspacePage,
    },
    {
        name: "composite-message",
        path: "/composite",
        component: CompositeMessagePage,
    },
    {
        name: "message",
        path: "/message",
        component: MessagePage,
    },
    {
        name: "mmpreview",
        path: "/mmpreview",
        component: MultimediaPreviewPage,
    },
    {
        name: "message-history",
        path: "/message-history",
        component: MessageHistoryPage,
    },
    {
        name: "conversation-message-history",
        path: "/conversation-message-history",
        component: ConversationMessageHistoryPage,
    },
    {
        name: "conversation-window",
        path: "/conversation-window",
        component: ConversationFloatPage,
    },
];
export default routers
